<style>
   .vaccine_interval_week_num .table td input{width: 3vw;}

  .vaccine_interval_week_num td ,.vaccine_interval_week_num th {
    padding: 0;
    text-align: center; /* 水平居中 */
    vertical-align: middle; /* 垂直居中 */
  }
</style>
@if($value)
<div class="vaccine_interval_week_num">

<table class="table table-striped table-bordered detail-view ">
    <tbody>
    <tr>
        <td>时段</td>
        <td colspan="2">星期一</td>
        <td colspan="2">星期二</td>
        <td colspan="2">星期三</td>
        <td colspan="2">星期四</td>
        <td colspan="2">星期五</td>
        <td colspan="2">星期六</td>
        <td colspan="2">星期日</td>
    </tr>
    <tr>
        <td></td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
        <td>开启</td>
        <td>数量</td>
    </tr>
        @foreach($value as $k=>$field)

        <tr>
            <td nowrap="nowrap">{{ $field['title'] }}</td>
            @foreach($field['weeks'] as $wk=>$wv)
            <td><input type="checkbox" name="{{$name}}[open][{{$wv['key']}}][{{$field['key']}}]" value="1" @if($wv['open']) checked @endif></td>
            <td><input type="text" name="{{$name}}[num][{{$wv['key']}}][{{$field['key']}}]" value="{{$wv['value']}}" style="text-align:center;"></td>
            @endforeach
        </tr>
        @endforeach

    </tbody>
</table>
</div>
@else
    请设置可预约时段后再设置号源！
    @endif
